package club.baimahu.pencil.base;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 与服务器机器相关的参数
 *
 * @author zhanghongjiang
 * @version 1.0
 * @date 2021/9/16 14:50
 */
@Component
public class ServerConstant {

    // 机器id  (0-31 一共占5bit)
    @Value("${server-constant.workId}")
    public static  int workId;

    // 数据中心id  (0-31 一共占5bit)
    @Value("${server-constant.datacenterId}")
    public static int datacenterId;

}
